package tech.anzhen.simple.rpc.support.rest;

public class ResponseMessage {

    private boolean success = true;

    private String message;

    private String code;

    private String stack;

    private Object data;

    private String moduleCode;

    private String moduleErrorCode;

    public ResponseMessage(boolean success, String message, String code,
                           String stack, Object data, String moduleCode, String moduleErrorCode) {
        super();
        this.success = success;
        this.message = message;
        this.code = code;
        this.stack = stack;
        this.data = data;
        this.moduleCode = moduleCode;
        this.moduleErrorCode = moduleErrorCode;
    }

    public boolean isSuccess() {
        return success;
    }

    public String getMessage() {
        return message;
    }

    public String getCode() {
        return code;
    }

    public String getStack() {
        return stack;
    }

    public Object getData() {
        return data;
    }

    public String getModuleCode() {
        return moduleCode;
    }

    public String getModuleErrorCode() {
        return moduleErrorCode;
    }

}
